package com.dowson.bean;

import org.springframework.beans.factory.annotation.Value;

/**
 * @Author Zoe
 * @Date: 2020/11/22
 * @Description
 */
public class Person {
    @Value("#{18-2}")
    private Integer age;
    @Value("张保国")
    private String name;

    @Value("${nickName}")
    private String nickName;

    public Person() {
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "Person{" +
            "age=" + age +
            ", name='" + name + '\'' +
            ", nickName='" + nickName + '\'' +
            '}';
    }
}
